//
//  ViewController.m
//  Tan_TestGDMap
//
//  Created by 亲哥哥 on 2018/4/29.
//  Copyright © 2018年 yam. All rights reserved.
//

#import "ViewController.h"
#import "MapVC.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    CGSize size = [UIScreen mainScreen].bounds.size;
    UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(50, 100, size.width-100, 100)];
    btn.backgroundColor = [UIColor grayColor];
    [btn setTitle:@"高德地图测试" forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(goMapVC) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
}

- (void)goMapVC{
    
    MapVC *vc = [MapVC new];
    [self presentViewController:vc animated:YES completion:nil];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
